package com.das.mechanic_base.utils;

import com.das.mechanic_base.bean.main.CarPoolBean;

import java.util.Comparator;

public class X3PinYinCarPool implements Comparator<CarPoolBean> {

        @Override
        public int compare(CarPoolBean brandBean, CarPoolBean afterBrandBean) {
            //这里主要是用来对ListView里面的数据根据ABCDEFG...来排序
            if (afterBrandBean.sortLetters.equals("#")) {
                return -1;
            } else if (brandBean.sortLetters.equals("#")) {
                return 1;
            } else {
                return brandBean.sortLetters.compareTo(afterBrandBean.sortLetters);
            }
        }

}
